package com.mi9688.method_quote;

public class Test02 {
    /**
     * 实例方法引入
     */
    public static void main(String[] args) {

        //实例化
        Test02 t = new Test02();
        //实例方法引用
        ((MessageInterface)t::printMessage).printMessage("Hello");

    }
    public void printMessage(String msg){
        System.out.println("打印内容:"+msg);
    }
}
